Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Fix edit path for files in folders #387

Merged
merged 1 commit into from
Nov 4, 2014
Merged

Fix edit path for files in folders #387

merged 1 commit into from
Nov 4, 2014

Conversation

konklone
Copy link
Contributor

@konklone konklone commented Nov 2, 2014

The edit link currently breaks for files in folders. If you visit https://project-open-data.cio.gov/v1.1/schema/ and click "Help Improve this Content", it will take you to the editing screen for the top-level schema.md, not v1.1/schema.md.

This uses page.path instead of page.filename, which incorporates the full path to that file. It's documented here and cites formulating edit links as a main use case.

@gbinal
Copy link
Contributor

gbinal commented Nov 4, 2014

+1

1 similar comment
@jlberryhill
Copy link
Contributor

+1

@philipashlock
Copy link
Contributor

Thanks!

philipashlock added a commit that referenced this pull request Nov 4, 2014
Fix edit path for files in folders
@philipashlock philipashlock merged commit 3fb48ca into project-open-data:master Nov 4, 2014
philipashlock added a commit that referenced this pull request Nov 4, 2014
@konklone konklone deleted the fix-edit-path branch November 4, 2014 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants